var Index = require('../app/controllers/index')
var Item = require('../app/controllers/item')
var New = require('../app/controllers/new')
var Self = require('../app/controllers/self')
var Comment = require('../app/controllers/comment')
var Sort = require('../app/controllers/sort')


module.exports = function(app){

    // app.use(function(req,res,next){
    //     // var _user = req.session.user
    //     // if(_user){
    //     //     app.locals.user = _user
    //     // }
    //     return next()
    // })


	app.get('/',Index.index)
	
	app.get('/item/:id',Item.detail)

	app.get('/new',New.showNew)

	app.get('/self/:id',Self.showSelf)

	app.get('/comment',Comment.showComment)

	app.get('/sort',Sort.showSort)
}
